package org.example.aienglishapp.entity.word;

import java.sql.Timestamp;

// UserProgress.java
public class UserProgress {

    private Long userId;
    private String wordBook;
    private String word;
    private Double progress;  // 对应数据库中的 NUMERIC 或 FLOAT 类型
    private Integer timesReviewed;
    private Timestamp lastReviewed;  // 确保是 Timestamp 类型
    private Integer interval;

    // 默认构造函数
    public UserProgress() {
    }

    // 构造函数
    public UserProgress(Long userId, String wordBook, String word, Double progress, Integer timesReviewed, Timestamp lastReviewed, Integer interval) {
        this.userId = userId;
        this.wordBook = wordBook;
        this.word = word;
        this.progress = progress;
        this.timesReviewed = timesReviewed;
        this.lastReviewed = lastReviewed;
        this.interval = interval;
    }

    // Getter 和 Setter 方法
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getWordBook() {
        return wordBook;
    }

    public void setWordBook(String wordBook) {
        this.wordBook = wordBook;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public Double getProgress() {
        return progress;
    }

    public void setProgress(Double progress) {
        this.progress = progress;
    }

    public Integer getTimesReviewed() {
        return timesReviewed;
    }

    public void setTimesReviewed(Integer timesReviewed) {
        this.timesReviewed = timesReviewed;
    }

    public Timestamp getLastReviewed() {
        return lastReviewed;
    }

    public void setLastReviewed(Timestamp lastReviewed) {
        this.lastReviewed = lastReviewed;
    }

    public Integer getInterval() {
        return interval;
    }

    public void setInterval(Integer interval) {
        this.interval = interval;
    }
}